package com.amado.easyui2.dao;

import java.util.List;

import com.amado.easyui2.domain.StudentEntity;

public interface StudentDao {
	/**
	 * 添加学员
	 * 
	 * @param idNumber
	 */
	void addStudent(StudentEntity idNumber);

	/**
	 * 删除学员
	 * 
	 * @param id
	 * @return
	 */
	int deleteStudent(Long[] id);

	/**
	 * 修改学员信息
	 * 
	 * @param idNumber
	 * @return
	 */
	int updateStudent(StudentEntity idNumber);

	/**
	 * 查询所有学员
	 * 
	 * @return
	 */
	List<StudentEntity> listAll(String name,String candiCar);

	/**
	 * 根据id查询学员
	 * 
	 * @param id
	 * @return
	 */
	StudentEntity getById(Long id);
	
	StudentEntity getByName(String idNumber);

}
